﻿#ifndef CTABLEEDITPLUGIN_H
#define CTABLEEDITPLUGIN_H
#include <QWidget>
#include <QDebug>



class CTableEditPlugin : public QWidget
{
    Q_OBJECT
public:

    virtual bool parseData(QString data) = 0;
    virtual QString readData() = 0;
    virtual bool checkData() {
        return true;
    }

protected:
    explicit CTableEditPlugin(QWidget *parent = nullptr){}
    ~CTableEditPlugin(){}
};

#if defined(__GNUC__) || defined(__clang__)
#define WEAK_ATTR __attribute__((weak))
#elif defined(_MSC_VER)
#define WEAK_ATTR __declspec(selectany)
#else
#define WEAK_ATTR
#endif

WEAK_ATTR CTableEditPlugin* createPlugin(QString name){}
#endif // CTABLEEDITPLUGIN_H
